//获取滚动条可滚动高度
export function setScrollHeight(el, instance) {
	return new Promise((resolve) => {
		uni.getSystemInfo({
			success: (res) => {
				let screenHeight = res.windowHeight //获取屏幕高度
				// 通过query 获取其余盒子的高度
				let query = uni.createSelectorQuery().in(instance).select(el);
				// console.log(query)
				query.boundingClientRect(data => {

					resolve(screenHeight - data.top)
				}).exec();

			},

		})
	})

}

import zq from "@/static/img/img/zq.png";
import lq from "@/static/img/img/lq.png";
import ppq from "@/static/img/img/ppq.png";
import ymq from "@/static/img/img/ymq.png";
import yy from "@/static/img/img/yy.png";
import hbc from "@/static/img/img/hbc.png";
import qt from "@/static/img/img/qt.png";

export const imgArr = [{
	code: 1,
	value: '足球',
	img: zq
}, {
	code: 2,
	value: '篮球',
	img: lq
}, {
	code: 3,
	value: '乒乓球',
	img: ppq
}, {
	code: 4,
	value: '羽毛球',
	img: ymq
}, {
	code: 5,
	value: '游泳',
	img: yy
}, {
	code: 6,
	value: '滑步车',
	img: hbc
}, {
	code: 7,
	value: '其他',
	img: qt
}];